feat: remember last results view in localStorage#3432
Conversation
jancborchardt
left a comment
There was a problem hiding this comment.
Very nice! All works correctly, either when refreshing the page, or navigating between the different View/Edit/Results tabs.
One detail:
The focus is initially always on "Summary", so there is a brief flash of blue over there until it switches to "Responses". Is it possible to have an "indeterminate" state so that until we know which one is selected, none will be visually highlighted?
|
And alternatively – @Chartman123 does it make sense to also add this part of the path at the end of the URL? Then you can specifically bookmark it too, for opening on other devices. |
Yes, that's what I already thought about too :)
I'll have another look at it. Thanks for the review! 👍🏻 |
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
5d4363c to
159ee58
Compare
|
@jancborchardt updated the code so that the current results view is also reflected in a query param ( |
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
159ee58 to
6761911
Compare
This implements #483 by storing the last used results view to localStorage. Values are stored per form per user, values for forms that are no longer available to the user will be removed upon loading forms.
🤖 AI (if applicable)